package net.huashitong.taskjob.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.taskjob.dao.TaskMethodDao;
import net.huashitong.taskjob.entity.TaskMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskMethodService extends StringPKService<TaskMethod> {
    @Autowired
    private TaskMethodDao dao;

    @Override
    protected BaseDao<TaskMethod, String> getDao() {
        return dao;
    }

    /**
     * 所有督查方法
     * @return
     */
    public List<TaskMethod> getAllMethon()
    {
        return dao.getAllMethon();
    }

    /**
     * 根据编码那分值
     * @param methon
     * @return
     */

    public TaskMethod getMethod(String methon)
    {
        return dao.getMethon(methon);
    }
}